Affinity Scheduling in Staged Server Architectures

نویسندگان

  • Stavros Harizopoulos
  • Anastassia Ailamaki
چکیده

Modern servers typically process request streams by assigning a worker thread to a request, and rely on a round robin policy for context-switching. Although this programming paradigm is intuitive, it is oblivious to the execution state and ignores each software module’s affinity to the processor caches. As a result, resumed threads of execution suffer additional delays due to conflict and compulsory misses while populating the caches with their evicted working sets. Alternatively, the staged programming paradigm divides computation into stages and allows for stage-based (rather than request thread-based) cohort scheduling that improves module affinity. This technical report introduces (a) four novel cohort scheduling techniques for staged software servers that follow a “production-line” model of operation, and (b) a mathematical framework to methodically quantify the performance trade-offs when using these techniques. Our Markov chain analysis of one of the scheduling techniques matches the simulation results. Using our model on a staged database server, we found that the proposed policies exploit data and instruction locality for a wide range of workload parameter values and outperform traditional techniques such as FCFS and processor-sharing. Consequently, our results justify the restructuring of a wide class of software servers to incorporate the staged programming paradigm. Email: {stavros, natassa}@cs.cmu.edu Stavros Harizopoulos is partially sponsored by a Lilian Voudouri Foundation Fellowship and gratefully acknowledges their support. Affinity Scheduling in Staged Server Architectures Stavros Harizopoulos and Anastassia Ailamaki March 2002 CMU-CS-02-113

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Affinity Scheduling in Staged Server Architectures (CMU-CS-02-113)

Modern servers typically process request streams by assigning a worker thread to a request, and rely on a round robin policy for context-switching. Although this programming paradigm is intuitive, it is oblivious to the execution state and ignores each software module’s affinity to the processor caches. As a result, resumed threads of execution suffer additional delays due to conflict and compu...

متن کامل

Using Cohort-Scheduling to Enhance Server Performance

A server application is commonly organized as a collection of concurrent threads, each of which executes the code necessary to process a request. This software architecture, which causes frequent control transfers between unrelated pieces of code, decreases instruction and data locality, and consequently reduces the effectiveness of hardware mechanisms such as caches, TLBs, and branch predictor...

متن کامل

Staged Design for Highly Concurrent Web Servers

In order to provide consistent and predictable response times under high load web servers with CPU-bound workloads must be able to control processor scheduling. Conventional servers such as Apache with thread-per-connection concurrency do not perform predictably at high loads because they rely on coarse-grained process scheduling mechanisms provided natively by the operating system. By designin...

متن کامل

The kDRR Scheduling Algorithms for Multi-server Packet Switches

Tremendous increase of Internet traffic demands high speed, large capacity IP switch routers. The introduction of multi-server switch architectures not only makes it possible to scale to larger switch capacities, but also imposes special requirements on scheduling algorithms running in the central scheduler. In this paper, we model the multi-server switch scheduling problem as a maximum biparti...

متن کامل

Design and Performance of a Continuous Media Server for a High-Speed Network

In this thesis we present two multimedia architectures and a data retrieval model for supporting simultaneously multiple clients requesting files of different playback rates. After reviewing some theoretical background from previous research, we study the performance of the architectures in terms of the maximum number of concurrent video streams they can support using circular SCAN disk schedul...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1992